package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.PointFile;
import cn.topevery.garden.entity.query.PointFileQuery;
import cn.topevery.garden.entity.vo.PointFileVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;

/**
 * 样点 附件表
 *
 * @author code-generate
 * @date 2022-03-16
 */
public interface PointFileDao extends BaseDao<PointFile> {


    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<PointFileVO> listPage(PointFileQuery query);

    PointFile getEntityByColumn(String key, String value);

    void deleteByMainId(Integer mainId);

    List<PointFile> getListByMainId(Integer id);

    void deleteByMainIds(Integer[] ids);

    List<PointFile> getListByPid(String id);
}
